-- GENERATED SPELL FOR [Felpaw Ravager] --


function spell0_8961(pUnit, Event) --@Infected Wound,n/a--
pUnit:FullCastSpellOnTarget(3427,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8961', 30255, 1)
end

function spell1_8961(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_8961', 596, 1)
end

function Sorts_8961(pUnit, Event)
local choix_sorts_8961 = math.random(0, 1)
if choix_sorts_8961 == 0 then
pUnit:RegisterEvent('spell0_8961', 1, 1)
end
if choix_sorts_8961 == 1 then
pUnit:RegisterEvent('spell1_8961', 1, 1)
end
end

function mob8961_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8961', math.random(1500, 3000), 1)
end

function mob8961_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8961_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8961_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8961, 1, 'mob8961_Action')
RegisterUnitEvent(8961, 2, 'mob8961_Leave')
RegisterUnitEvent(8961, 3, 'mob8961_Kill')
RegisterUnitEvent(8961, 4, 'mob8961_Die')
